package com.wei.czz.common.vo.blog.tag;

import com.wei.czz.common.jsr303.group.Save;
import com.wei.czz.common.jsr303.group.Update;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2021-05-15 22:12:00
 * className: TagVo 博客标签表单请求Vo类
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class TagVo extends BaseEntity {

    /**
     * 标签主键
     */
    @NotNull(message = "标签主键不能为空", groups = { Update.class })
    private Long id;

    /**
     * 标签名字
     */
    @NotBlank(message = "标签名字不能为空", groups = { Save.class, Update.class })
    private String name;

    /**
     * 排序等级
     */
    @NotNull(message = "排序等级不能为空", groups = { Save.class, Update.class })
    private Integer sort;

}
